package tech.wetech.admin.modules.system.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.wetech.admin.modules.base.service.impl.BaseService;
import tech.wetech.admin.modules.system.mapper.SuiXingFuMapper;
import tech.wetech.admin.modules.system.po.SuiXingFu;
import tech.wetech.admin.modules.system.service.SuiXingFuService;

@Service
public class SuiXingFuServiceImpl extends BaseService<SuiXingFu> implements SuiXingFuService {

    @Autowired
    private SuiXingFuMapper suiXingFuMapper;

    @Override
    public void inset(SuiXingFu suiXingFu) {
        suiXingFuMapper.insertSelective(suiXingFu);
    }

    @Override
    public SuiXingFu selectApplyifo(String mno) {
        SuiXingFu suiXingFu=new SuiXingFu();
        suiXingFu.setMno(mno);
        return suiXingFuMapper.selectOne(suiXingFu);
    }

    @Override
    public void update(SuiXingFu suiXingFu) {
        suiXingFuMapper.updateByPrimaryKeySelective(suiXingFu);
    }
}
